﻿#pragma once
#include <QString>
#include <QLabel>

namespace util
{
    class HwUtils
    {
        public:
            static QString read_ip_address();
            static QString getBiosId();
            static QString getCmdRes(QString cmd);
            static void simpleLog2File(QString fileName, QString body);
			static void simpleJson2File(QString fileName, QString body);
			static void setLED(QLabel* label, int color, int size);
			static bool isOkHttpCode(int httpCode);
			static bool checkHttpCode(int httpCode);
			static bool checkHttpCode(int httpCode, std::string httpMsg);
			static bool checkSomeParam(QString paraName, QString paraValue);
			static bool checkSomeParam(QString paraName, QString paraValue, QString msg);
			static bool checkAiUrlReqParams(QString serialNumber, QString hostUrl, QString token, QString product);
			static bool checkGetPrductReqParams(QString serialNumber, QString hostUrl, QString token);
			static bool checkAiInferParams(QString machineId, QString productCode, QString tableName, QString cameraId);
			static bool logDebugRequired();
	};
}